﻿using LanhuCms.Model.Model;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LanhuCms.Model
{
    public class LanhuCmsContext : DbContext
    {
        public LanhuCmsContext() : base("name=DefaultConnection") {
            Database.SetInitializer(new DropCreateDatabaseIfModelChanges<LanhuCmsContext>());
        }

        public DbSet<WebSite> WebSites { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {

        }
    }
}
